<h1>My Articles</h1>

<table border="0" cellspacing="1" cellpadding="2" class="general">
  <thead>
    <tr>      
      <th>Title</th>
      <th>URL</th>
     
      <th>Article views</th>
      <th>Total rating</th>
      <th>Total user rated</th>
      
      <th>Article source</th>
      
      
      <th>Active</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($articles as $article): ?>
    <tr>
      
      <td><a href="<?php echo url_for('article/edit?id='.$article->getId()) ?>"><?php echo $article->getTitle() ?></a></td>
      <td><?php echo $article->getUrlSlug() ?></td>
      
      <td><?php echo $article->getArticleViews() ?></td>
      <td><?php echo $article->getTotalRating() ?></td>
      <td><?php echo $article->getTotalUserRated() ?></td>

      <td><?php echo $article->getArticleSource() ?></td>      
      <td><?php echo $article->getActiveStatus() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>